package stark.app.function.fdy;

import android.os.Bundle;

import com.stark.stkplayer.BaseStkPlayerFragment;
import com.stark.stkplayer.BaseStkResAdapter;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import stark.app.R;
import stark.app.databinding.FragmentFdyDemoBinding;
import stark.common.basic.constant.Extra;

/**
 * Author：daizhongbin on 2021/10/23
 * Email：1027154338@qq.com
 * Desc:
 */
public class FdyDemoFragment extends BaseStkPlayerFragment<FragmentFdyDemoBinding> {

    @NonNull
    @Override
    protected RecyclerView getRecyclerView() {
        return mDataBinding.rvContainer;
    }

    @Override
    protected boolean isHorizontal() {
        Bundle bundle = getArguments();
        if (bundle != null) {
            return bundle.getBoolean(Extra.TYPE);
        }
        return false;
    }

    @NonNull
    @Override
    protected BaseStkResAdapter getStkResAdapter() {
        return new VideoItemAdapter();
    }

    @Override
    protected int onCreate() {
        return R.layout.fragment_fdy_demo;
    }

}
